  function regis(){

      	
		var reg1 = new RegExp("^[1][3,4,5,7,8][0-9]{9}$"); 
      	if(!reg1.test(document.getElementById('phone').value)){
				alert("请输入正确手机号");
			return ;
      	}
		if(document.getElementById('username').value==""){
      		alert("用户名不能为空");
      		return ;
      	}
      var password1=document.getElementById('password').value;
      var password2=document.getElementById('password_again').value;
      if(password1!=password2){
      	alert("两次输入密码不一致");
      	retrun ;
      }
      if(password1==""||password2==""){
      	alert("密码不能为空");
      	return ;
      }
      	
      	
      	 document.getElementById("form1").submit();
      }

 